home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  716 b 

  1. Path: news.Stanford.EDU!usenet
  2. From: tjb <byer@pangea.stanford.edu>
  3. Newsgroups: comp.lang.c++
  4. Subject: File Input Question  with    fin.get
  5. Date: 31 Dec 1995 20:47:58 GMT
  6. Organization: Stanford University
  7. Message-ID: <4c6stv$926@nntp.Stanford.EDU>
  8. NNTP-Posting-Host: maple1.stanford.edu
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
  13.  
  14.  
  15. I want to read until I hit a space or '\n' 
  16.  
  17. I have tried something like fin.get(buff,256,' ') which works fine but I 
  18. want something like fin.get(buff,256,' ' || '\n')  (read into buff until a 
  19. space or end of line is encountered)
  20.  
  21. Any help or simple example is appreciated.
  22.  
  23. Thanks
  24. Tom
  25.  
  26.  
  27.  
  28.